package com.example.project;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AccionServicio extends Activity {
	
	Button conf;
	Button startS;
	Button endS;
	Button reconectBD;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_accion_servicio);
		
		
		conf=(Button) findViewById(R.id.buttonSelRuta);
		startS=(Button) findViewById(R.id.buttonEncender);
		endS=(Button) findViewById(R.id.buttonApagar);
		reconectBD=(Button) findViewById(R.id.buttonRestablecerBD);
		
		
		conf.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent2 = new Intent(v.getContext(), DirChooserSample.class);
				startActivity(intent2);
				
			}
		});
		
		startS.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				
				Intent intent2 = new Intent(v.getContext(), Project_Menu.class);
				startActivity(intent2);

			}
		});
		endS.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				
			    Intent intent2 = new Intent(v.getContext(), Project_Menu.class);
				startActivity(intent2);

			}
		});

		reconectBD.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				
			}
		});

		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_accion_servicio, menu);
		return true;
	}

}
